package com.xiaoyung.easyisapisdk.common.workflow.entity;

import java.util.Date;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonFormat;

public class ProcHiProcinstEntity {

	
	////@ApiModelProperty(value = "流程历史实例id")
	private String id;
	
	//@ApiModelProperty(value = "流程实例id")
	private String procInstId;
	
	//@ApiModelProperty(value = "业务key")
	private String businessKey;
	
	//@ApiModelProperty(value = "流程定义id")
	private String procDefId;
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	//@ApiModelProperty(value = "流程发起时间")
	private Date startTime;
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	//@ApiModelProperty(value = "流程结束时间")
	private Date endTime;
	
	//@ApiModelProperty(value = "持续时间(毫秒)")
	private Long duration;
	
	//@ApiModelProperty(value = "发起人")
	private String startUserId;
	
	////@ApiModelProperty(value = "启动节点id")
	private String startActId;
	
	////@ApiModelProperty(value = "结束节点id")
	private String endActId;
	
	////@ApiModelProperty(value = "父流程实例id")
	private String superProcessInstanceId;
	
	//@ApiModelProperty(value = "作废原因")
	private String deleteReason;
	
	//@ApiModelProperty(value = "流程实例名称")
	private String name;

	/* 流程定义 信息
	act_re_procdef as rp
	rp.name_ pname_,
	rp.version_,
	rp.id_ pid_,
	rp.deployment_id_,
	rp.dgrm_resource_name_*/
	//@ApiModelProperty(value = "流程定义(流程模型)名称")
	private String pname;
	
	//@ApiModelProperty(value = "流程定义(流程模型)key")
	private String key;
	
	//@ApiModelProperty(value = "流程定义版本")
	private String version;
	
	////@ApiModelProperty(value = "流程定义id")
	private String pid;
	
	////@ApiModelProperty(value = "部署id")
	private String deploymentId;
	
	//@ApiModelProperty(value = "流程模型图片资源名称")
	private String dgrmResourceName;

	
	
	//@ApiModelProperty(value = "当前任务名称 可能多个逗号分隔")
	private String currentTaskNames;// 当前任务名称 可能多个逗号分隔
	
	//@ApiModelProperty(value = "当前任务办理人 可能有多个逗号分隔")
	private String currentTaskAssignees;// 当前任务办理人 可能有多个逗号分隔

	//@ApiModelProperty(value = "流程节点实例")
	private List<ProcHiActinstEntity> actinsts;
	
	//@ApiModelProperty(value = "流程图片")
	private String imgSrc;
	
	//@ApiModelProperty(value = "流程变量")
	private Map<String,Object> vars;

	//@ApiModelProperty(value = "流程模型xml")
	private String modelXml;
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getProcInstId() {
		return procInstId;
	}

	public void setProcInstId(String procInstId) {
		this.procInstId = procInstId;
	}

	public String getBusinessKey() {
		return businessKey;
	}

	public void setBusinessKey(String businessKey) {
		this.businessKey = businessKey;
	}

	public String getProcDefId() {
		return procDefId;
	}

	public void setProcDefId(String procDefId) {
		this.procDefId = procDefId;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Long getDuration() {
		return duration;
	}

	public void setDuration(Long duration) {
		this.duration = duration;
	}

	public String getStartUserId() {
		return startUserId;
	}

	public void setStartUserId(String startUserId) {
		this.startUserId = startUserId;
	}

	public String getStartActId() {
		return startActId;
	}

	public void setStartActId(String startActId) {
		this.startActId = startActId;
	}

	public String getEndActId() {
		return endActId;
	}

	public void setEndActId(String endActId) {
		this.endActId = endActId;
	}

	public String getSuperProcessInstanceId() {
		return superProcessInstanceId;
	}

	public void setSuperProcessInstanceId(String superProcessInstanceId) {
		this.superProcessInstanceId = superProcessInstanceId;
	}

	public String getDeleteReason() {
		return deleteReason;
	}

	public void setDeleteReason(String deleteReason) {
		this.deleteReason = deleteReason;
	}


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getDeploymentId() {
		return deploymentId;
	}

	public void setDeploymentId(String deploymentId) {
		this.deploymentId = deploymentId;
	}

	public String getDgrmResourceName() {
		return dgrmResourceName;
	}

	public void setDgrmResourceName(String dgrmResourceName) {
		this.dgrmResourceName = dgrmResourceName;
	}

	public String getCurrentTaskNames() {
		return currentTaskNames;
	}

	public void setCurrentTaskNames(String currentTaskNames) {
		this.currentTaskNames = currentTaskNames;
	}

	public String getCurrentTaskAssignees() {
		return currentTaskAssignees;
	}

	public void setCurrentTaskAssignees(String currentTaskAssignees) {
		this.currentTaskAssignees = currentTaskAssignees;
	}

	public List<ProcHiActinstEntity> getActinsts() {
		return actinsts;
	}

	public void setActinsts(List<ProcHiActinstEntity> actinsts) {
		this.actinsts = actinsts;
	}

	public String getImgSrc() {
		return imgSrc;
	}

	public void setImgSrc(String imgSrc) {
		this.imgSrc = imgSrc;
	}

	public Map<String, Object> getVars() {
		return vars;
	}

	public void setVars(Map<String, Object> vars) {
		this.vars = vars;
	}

	public String getModelXml() {
		return modelXml;
	}

	public void setModelXml(String modelXml) {
		this.modelXml = modelXml;
	}

	
	
}
